<template>
	<view  v-if="info" class="activateMembership">
		<view class="header">
			<view class="left">
				<image :src="info.portrait" mode=""></image>
				<view class="info">
					<view class="top">
						{{info.nickName}}
					</view>
					<view class="bot">
						ID：{{info.memberNo}}
					</view>
				</view>
			</view>
		</view>
		<view class="infoPrev">
			
			<view class="line">
				<view class="left">
					姓名
				</view>
				<view class="right">
					{{info.certName}}
				</view>
			</view>
			<view class="line">
				<view class="left">
					身份证号
				</view>
				<view class="right">
					{{info.certificateNo}}
				</view>
			</view>
			  
			  
			<view class="line">
				<view class="left">
					认证类型
				</view>
				<view class="right">
					{{info.authTypeName}}
				</view>
			</view>
			<view class="line">
				<view class="left">
					认证时间
				</view>
				<view class="right">
					{{info.genTime}}
				</view>
			</view>
			<view class="line">
				<view class="left">
					认证状态
				</view>
				<view class="right">
					<text v-if="info.flowStatus=='APPLIED'" class="status doing">
						{{info.flowStatusName}}
					</text>
					<text v-else-if="info.flowStatus=='REJECTED'" class="status">
						{{info.flowStatusName}}
					</text>
					<text v-else class="status ok">
						{{info.flowStatusName}}
					</text>
				</view>
			</view>
			<view v-if="info.description" class="line">
				<view class="left">
					认证描述
				</view>
				<view class="right">
					{{info.description}}
				</view>
			</view>
			
			<!-- 认证详情页缺少审核人（checkerName）、审核时间（checkTime）、审核备注（note） -->
			
			
			<view v-if="info.checkerName" class="line">
				<view class="left">
					审核人
				</view>
				<view class="right">
					{{info.checkerName}}
				</view>
			</view>
			<view v-if="info.checkTime" class="line">
				<view class="left">
					审核时间
				</view>
				<view class="right">
					{{info.checkTime}}
				</view>
			</view>
			<view v-if="info.note" class="line">
				<view class="left">
					审核备注
				</view>
				<view class="right">
					{{info.note}}
				</view>
			</view>
			
			
			<!-- 认证详情页缺少审核人（checkerName）、审核时间（checkTime）、审核备注（note） -->
			<!-- <view v-if="info.description" class="line">
				<view class="left">
					认证描述
				</view>
				<view class="right">
					{{info.description}}
				</view>
			</view> -->
			

		</view>


		<!-- 附件上传 -->
		<!-- <view v-if="showImageList.length" class="photos">
			<view class="tit">
				<view class="left">
					<text>APP展示照片</text>
				</view>
			</view>
			<view class="">
				<u-upload :disabled="false" :deletable="false" :width="148" :height="148" :show-progress="false"
					:max-count="1" :file-list="showImageList"></u-upload>

			</view>
		</view> -->
		<view v-if="fileList.length" class="photos">
			<view class="tit">
				<view class="left">
					<text>附件</text>
				</view>
			</view>
			<view class="">
				<u-upload :disabled="false" :deletable="false" :width="148" :height="148" :show-progress="false"
					:max-count="fileList.length" :file-list="fileList"></u-upload>
			</view>
		</view>


	</view>
</template>

<script>
	export default {
		data() {
			return {
				id: 0,
				info: null,
				showImageList: [],
				fileList: []

			}
		},
		onLoad(e) {

			this.getDetail(e.id) //获取会员列表

		},
		methods: {
			getDetail(id) {
				this.$u.api
					.authRecordDetail({
						id
					})
					.then((res) => {
						console.log(res, 77777);
						this.info = res.data
						if (res.data?.showImage) {
							this.showImageList = [{
								'url': res.data?.showImage
							}]
						}
						if (res.data?.fileList?.length) {
							this.fileList = res.data?.fileList?.map(r => {
								return {
									'url': r
								}
							})
						}


					});
			}

		}
	}
</script>

<style scoped lang="scss">
	.activateMembership {
		padding: 0 40rpx;

		.radios {
			display: flex;
			align-items: center;
			justify-content: space-between;
			font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
			font-weight: 400;
			font-size: 28rpx;
			color: #0F1417;
			line-height: 33rpx;
			padding-right: 50rpx;

			.items {
				display: flex;
				align-items: center;

				.icon {
					display: block;
					width: 32rpx;
					height: 32rpx;
					margin-right: 24rpx;
					background: url('https://oss.6mate.cn/mini/nocheck1.png') no-repeat;
					background-size: cover;
				}

				&.active {
					.icon {
						background: url('https://oss.6mate.cn/mini/check1.png') no-repeat;
						background-size: cover;
					}
				}
			}
		}

		.botBox {
			padding: 42rpx 0;
			// z-index: 998;
			// position: fixed;
			// left: 40rpx;
			// bottom: 90rpx;
			// padding-bottom: env(safe-area-inset-bottom);
			// right: 40rpx;

			.item1 {
				border-radius: 44rpx 44rpx 44rpx 44rpx;
				box-shadow: 0rpx 20rpx 24rpx 0rpx rgba(181, 36, 44, 0.2);
			}
		}

		.intro {

			padding: 6rpx 16rpx 0;

			background: #F1F1F1;
			border-radius: 10rpx 10rpx 10rpx 10rpx;

			&.intro1 {
				height: 176rpx;
				// margin-top: 24rpx;
			}

			/deep/ .u-input__input {
				text-align: left !important;
				// margin-right: 24rpx;
			}

			/deep/ textarea,
			uni-textarea {
				height: 60px;
			}

			.max {
				font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
				font-weight: 400;
				font-size: 24rpx;
				color: rgba(15, 20, 23, 0.4);
				line-height: 28rpx;
				text-align: right;
			}
		}

		.photos {
			background: #FFFFFF;
			padding: 24rpx 0 0;
			border-radius: 16rpx 16rpx 16rpx 16rpx;
			// margin-bottom: 24rpx;

			.open {
				margin-top: 16rpx;
				display: flex;
				align-items: center;
				justify-content: space-between;
				font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
				font-weight: 400;
				font-size: 28rpx;
				color: #0F1417;
				line-height: 33rpx;
			}

			.tit {
				margin-bottom: 18rpx;
				display: flex;
				align-items: center;
				justify-content: space-between;

				.left {
					display: flex;
					align-items: center;

					>text:nth-child(1) {
						font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
						font-weight: 500;
						font-size: 28rpx;
						color: #0F1417;
						line-height: 40rpx;
					}

					>text:nth-child(2) {
						font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
						font-weight: 400;
						font-size: 24rpx;
						color: rgba(15, 20, 23, 0.4);
						line-height: 28rpx;
					}
				}

				.right {
					  
					
					flex:1;
					font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
					font-weight: 400;
					font-size: 24rpx;
					color: rgba(15, 20, 23, 0.4);
					line-height: 28rpx;
				
				}
			}
		}

		.title {
			padding: 24rpx 0 16rpx;
		}

		.infoPrev {
			padding: 8rpx 0;
			border-bottom: 2rpx solid #F5F5F5;

			.line {
				margin-bottom: 16rpx;
				display: flex;
				align-items: center;

				// justify-content: space-between;
				.left {
					font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
					font-weight: 400;
					font-size: 28rpx;
					color: #0F1417;
					line-height: 33rpx;
					margin-right: 66rpx;
					min-width: 55px;
				}

				.right {
					  word-break: break-all;
					flex: 1;
					font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
					font-weight: 400;
					font-size: 28rpx;
					color: rgba(15, 20, 23, 0.6);
					line-height: 33rpx;

					.status {
						font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
						font-weight: 500;
						font-size: 28rpx;
						color: #6F7274;
						line-height: 33rpx;

						&.doing {
							color: #FFA340 !important;
						}

						&.ok {
							color: #1BAB6B !important;
						}
					}
				}
			}
		}

		// border-bottom: 2rpx solid #F5F5F5;

		.header {
			padding-bottom: 24rpx;

			display: flex;
			align-items: center;
			justify-content: space-between;

			.left {
				display: flex;
				align-items: center;

				image {
					width: 93rpx;
					height: 93rpx;
					margin-right: 26rpx;
					border-radius: 50%;
				}

				.info {
					flex: 1;

					.top {
						font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
						font-weight: 400;
						font-size: 28rpx;
						color: #0F1417;
						line-height: 40rpx;
						margin-bottom: 8rpx;
					}

					.bot {
						font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
						font-weight: 400;
						font-size: 24rpx;
						color: rgba(15, 20, 23, 0.6);
					}
				}
			}

			.tags {
				font-family: Alibaba PuHuiTi, Alibaba PuHuiTi;
				font-weight: 400;
				font-size: 24rpx;
				color: #0F1417;
				line-height: 20rpx;
				color: #0F1417;
				background: #EDEFF0;
				border-radius: 48rpx 48rpx 48rpx 48rpx;
				padding: 8rpx 16rpx;

				&.base {
					color: #E7EDF4 !important;
					background: #252E3C !important;
				}

				&.golden {
					color: #FFE1CF !important;
					background: #A06D08 !important;
				}

				&.baijin {
					color: #FFE1CF !important;
					background: #4B1C00 !important;
				}

				&.zuanshi {
					color: #D0EAF9 !important;
					background: #3E5980 !important;
				}
			}
		}
	}
</style>
